<template>
    <view>
        <text v-if="noData" class="data_max">--- 暂无数据 ---</text>
        <template v-else>
            <text v-if="loading" class="data_loading">加载中...</text>
            <text v-if="max" class="data_max">--- 没有更多了 ---</text>
        </template>
    </view>
</template>

<script setup lang="ts">
import {ref, reactive } from "vue"
const props = defineProps({
    noData: {
        type: Boolean,
        default: false
    },
    loading: {
        type: Boolean,
        default: false
    },
    max: {
        type: Boolean,
        default: false
    },
})
</script>
<style lang="scss" scoped>
.data_max, .data_loading{
    display: block;
    width: 100%;
    color: #ccc;
    font-size: 22rpx;
    text-align: center;
    line-height: 60rpx;
}
.data_loading{
    color: #666;
}

</style>
